package demo1;

public class test {
    public static void main(String[] args) throws Exception {
        Thread thread = new Thread(new MyThread(), "MyThread");
        thread.start();
        Thread.currentThread().join();
        for (int i = 0; i < 200; i++) {
            System.out.println(Thread.currentThread().getName() + ":" + i);
        }
    }
}
